package com.suao.fruits.domain;

import com.suao.common.annotation.Excel;
import com.suao.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 水果信息管理对象 suao_fruits_info
 *
 * @author tyz
 * @date 2023-02-27
 */
@Data
public class FruitsInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 水果名称 */
    @Excel(name = "水果名称")
    private String fruitsName;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 进货价 */
    @Excel(name = "进货价")
    private BigDecimal purchasePrice;

    /** 零售价 */
    @Excel(name = "零售价")
    private BigDecimal retailPrice;
    
    /** 库存 */
    @Excel(name = "库存总量")
    private BigDecimal inventoryTotal;

    /** 库存 */
    @Excel(name = "当前库存")
    private BigDecimal inventory;
    
    /** 库存 */
    @Excel(name = "损耗数量")
    private BigDecimal lossNum;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fruitsName", getFruitsName())
            .append("unit", getUnit())
            .append("purchasePrice", getPurchasePrice())
            .append("retailPrice", getRetailPrice())
            .append("inventory", getInventory())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
